package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author 张永远
 * @since 2020-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_rakuten_product")
public class OrderRakutenProductDo extends Model<OrderRakutenProductDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "item_detail_id", type = IdType.INPUT)
    private Long itemDetailId;

    /**
     * 包裹id
     */
    @TableField("basket_id")
    private Long basketId;

    @TableField("product_info_id")
    private Long productInfoId;
    /**
     * 商品名
     */
    @TableField("item_name")
    private String itemName;

    /**
     * 商品ID
     */
    @TableField("item_id")
    private Long itemId;

    /**
     * 商品番号
     */
    @TableField("item_number")
    private String itemNumber;

    /**
     * 商品管理番号
     */
    @TableField("manage_number")
    private String manageNumber;

    /**
     * 单价
     */
    @TableField("price")
    private Integer price;

    /**
     * 个数
     */
    @TableField("units")
    private Integer units;

    /**
     * 以下のいずれか

0: 送料別
1: 免费送货
     */
    @TableField("include_postage_flag")
    private Integer includePostageFlag;

    /**
     * 0 不含税，1含税
     */
    @TableField("include_tax_flag")
    private Integer includeTaxFlag;

    /**
     * 货到付款手续费 0 不 1包含
     */
    @TableField("include_cash_on_delivery_postage_flag")
    private Integer includeCashOnDeliveryPostageFlag;

    /**
     * 项目选择
     */
    @TableField("selected_choice")
    private String selectedChoice;

    @TableField("point_rate")
    private Integer pointRate;

    @TableField("point_type")
    private Integer pointType;

    @TableField("inventory_type")
    private Integer inventoryType;

    @TableField("delvdate_info")
    private String delvdateInfo;

    @TableField("drug_flag")
    private Integer drugFlag;

    /**
     * 単品
     */
    @TableField("is_single_item_shipping")
    private Integer isSingleItemShipping;

    /**
     * 每个产品的含税价格
     */
    @TableField("price_tax_incl")
    private Integer priceTaxIncl;




    @Override
    protected Serializable pkVal() {
        return this.itemDetailId;
    }

}
